package com.innazis.jfrogsurvey.obj;

import java.util.ArrayList;
import java.util.Date;

/**
 * Created by Inna on 04.06.14.
 */
public class SurveyObj {

    private int _survey_id;
    private String _survey_name;
    private String _survey_title;
    private int _questions_num;
    private Boolean _is_sent;
    private Date _submitted_datetime;
    private ArrayList<QuestionObj> _questions_list;
    private String _user_data;

    public SurveyObj() {
        super();
    }

    public SurveyObj(int survey_id, String survey_name, String survey_title, int questions_num,
                      Boolean is_sent, ArrayList<QuestionObj> questions_list) {
        this._survey_id = survey_id;
        this._survey_name = survey_name;
        this._survey_title = survey_title;
        this._questions_num = questions_num;
        this._is_sent = is_sent;
        this._submitted_datetime = new Date();
        this._questions_list = questions_list;
        this._user_data = "";
    }

    public SurveyObj(int survey_id, String survey_name, String survey_title, int questions_num,
                     Boolean is_sent, Date submitted_datetime, ArrayList<QuestionObj> questions_list, String user_data) {
        this._survey_id = survey_id;
        this._survey_name = survey_name;
        this._survey_title = survey_title;
        this._questions_num = questions_num;
        this._is_sent = is_sent;
        this._submitted_datetime = submitted_datetime;
        this._questions_list = questions_list;
        this._user_data = user_data;
    }

    public SurveyObj(int survey_id, String survey_name, String survey_title, int questions_num, ArrayList<QuestionObj> questions_list) {
        this._survey_id = survey_id;
        this._survey_name = survey_name;
        this._survey_title = survey_title;
        this._questions_num = questions_num;
        this._is_sent = false;
        this._submitted_datetime = null;
        this._questions_list = questions_list;
        this._user_data = "";
    }

    // get set
    public int get_survey_id() {
        return _survey_id;
    }

    public void set_survey_id(int _survey_id) {
        this._survey_id = _survey_id;
    }

    public String get_survey_name() {
        return _survey_name;
    }

    public void set_survey_name(String _survey_name) {
        this._survey_name = _survey_name;
    }

    public String get_survey_title() {
        return _survey_title;
    }

    public void set_survey_title(String _survey_title) {
        this._survey_title = _survey_title;
    }

    public int get_questions_num() {
        return _questions_num;
    }

    public void set_questions_num(int _questions_num) {
        this._questions_num = _questions_num;
    }

    public Boolean get_is_sent() {
        return _is_sent;
    }

    public void set_is_sent(Boolean _is_sent) {
        this._is_sent = _is_sent;
    }

    public Date get_submitted_datetime() {
        return _submitted_datetime;
    }

    public void set_submitted_datetime(Date sent_datetime) {
        this._submitted_datetime = sent_datetime;
    }

    public ArrayList<QuestionObj> get_questions_list() {
        return _questions_list;
    }

    public void set_questions_list(ArrayList<QuestionObj> _questions_list) {
        this._questions_list = _questions_list;
    }

    public String get_user_data() {
        return _user_data;
    }

    public void set_user_data(String _user_data) {
        this._user_data = _user_data;
    }

    // end get set
}
